#Variables Demo 
#Chapter 2 for more information - http://www.openbookproject.net/thinkcs/python/english2e/ch02.xhtml

#declaring two variables containing whole number or integers
i = 10
d = 9

#Can perform calculations.  Some possibilities are:  + - / % (what's this?) **
print i + d

#All Variables are automatically assigned a "data type" in Python
# Some examples of data types are: int - integer or whole number - or +, float - decimal number, str - string, i.e. "string of characters" or general text

# i/j - means integer division, when i and j are integers

#formula for converting F to C
#this following is incorrect - Python will try 5/9 as integer division and will always return 0!
Tc=(5/9)*(Tf-32)

#instead say 5.0/9.0 forcing Python to try it is "floating point" or decimal division
Tc=(5.0/9.0)*(Tf-32.0)

#Strings are declared using ""
name = "Joe"    # the variable name now contains the text: Joe
print "Hello, " + name

#Using string composition, i.e. , to combine text and numbers
print "The answer is ", i, d